<template>
	<view class="">
		<u-tabbar v-model="current" active-color="#2979ff"  :list="list" :mid-button="true"></u-tabbar>
	</view>
</template>

<script>
	import uTabbar from "@/uview-ui/components/u-tabbar/u-tabbar.vue"
	export default {
		components: {
			uTabbar
		},
		props: {
			current: {
				type: Number,
				default: 0
			}
		},
		data(){
			return{
				list:[]
			}
		},
		created() {
			if(this.$store.state.user==undefined)
			{
				var _this=this;
				uni.getStorage({
					key: 'user_data',
					success: function (res) {
						_this.list=res.data.data;
					}
				});
			}
			else
			{
				this.list=this.$store.state.user.data;
			}
		},
		methods:{
			
		},
	}
</script>

<style>
	
</style>